<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";

%>
<!DOCTYPE html>
<html>
    <head>
        <title>账户查询</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta http-equiv="Access-Control-Allow-Origin" content="*">
        <meta content='Flat administration template for Twitter Bootstrap.' name='description'>
        <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1">
        
        <script type="text/javascript" src="/business/js/core/seajs2/dist/sea.js"
        data-config="/business/js/global.js" data-main="/business/js/main.js"></script>
        
         <!--[if lt IE 9]>
        <script src="js/tool/html5/html5.js" type="text/javascript"></script>
        <![endif]-->
        
    </head>
    <body class='contrast-blue '>
        <div class='span12' style='margin-left:0'>
            <div class='row-fluid'>
                <div class='span12'>
                    <div class='page-header'>
                        <h1 class='pull-left'><i class='icon-book'></i><span id="show">账户查询</span></h1>
                    </div>
                </div>
            </div>
            
            <div class='box bordered-box '>
				<div id="queryAreaId"> 
				<div class='span12 box'>
					<form id="queryFormId" class=" form-inline">
						<div style="margin-left:20px;"></div>
						<div class='span12'>
							<div class="span4">
								<div class='control-group'>
					          		ISV名称&nbsp;<%=request.getAttribute("isv_name")%>
					                <lable id='isvid'  style="width:100px; display:none"><%=request.getAttribute("isv_id")%></lable>
					        	</div>
							</div>
							 <div class="span4">
									<div class='control-group'>
						          		应用名称&nbsp;<%=request.getAttribute("app_name")%>
						                <lable id='applicationid'  style="width:100px; display:none"><%=request.getAttribute("app_id")%></lable>
						        	</div>
							</div>
							
						</div>
						<div class='span12'>
						
							<div class="span4">
								<div class='control-group'>
					          		账户名称&nbsp;<%=request.getAttribute("com_name")%>
					                <lable id='carrierid'  style="width:100px;display:none"><%=request.getAttribute("com_id")%></lable>
					        	</div>
							</div>
							
							<div class="span4">
								<div class='control-group'>
									<div id='querydatewrapper'></div>
								</div>
							</div>
							
							<div class="span4">
								<div class='control-group'>
					          		账户剩余分钟数&nbsp;<%=request.getAttribute("am_amount")%>
					                <lable id='com_amount'  style="width:100px; display:none"><%=request.getAttribute("com_amount_id")%></lable>
					        	</div>
							</div>
							
							<div class="span4">
								<div class='control-group'>
									<button id=btnquery type="submit" class="btn btn-contrast">查询</button>
									<!--<a id="btn_export" class="btn contrast" href="#">数据导出</a>-->
								</div>
							</div>
						</div>
				    </form>
				</div>
				
				</div>
			</div>
            
            <div id='data_table' style="margin-left:80px;"></div>
            <div id='data_table_detail'  style="display:none;"></div><!-- æ¾ç¤ºæ¥è¯¢çè¯¦ç»ä¿¡æ¯ -->
            
            <div id="back_btn"></div>
            
        </div>
        
        <script type="text/javascript">
        
        	seajs.use(["$", "js/common/pub/src/js/phonebill_m", "store"],
	             function($, achievement, store)
	             {
        			 var carrierId = store.get("userInfo").carrierId;
        			 var infotype = store.get("userInfo").infotype;
        			 if(!infotype)
        				 infotype=2;
        			 var flagIsv = true;
        			 if(carrierId != -1)
        				 flagIsv = false;

        			 achievement.init(
	                 {
	                     ajaxUrl : "/pubbase/achievement/pagination/achievenmentRecordMonth/"+ carrierId+"/"+infotype + ".do",
	                     divWrapperId : "data_table",
	                     storeId : store.get("userInfo").storeId,
	                     flagIsv : flagIsv
	                 });
	             });
        	
        </script>

    </body>
</html>